package com.wcards.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.beust.ah.A;
import com.wcards.config.R;
import com.wcards.dto.AnimalDTO;
import com.wcards.entity.AdoptApplicationInfo;
import com.wcards.entity.AnimalInfo;
import com.wcards.entity.CommentInfo;

import java.util.List;

public interface AnimalInfoService extends IService<AnimalInfo> {

    R<AnimalInfo> getAnimalByNumber(Integer animalNumber);
    //<Page<AnimalInfo>
    R<Page<AnimalInfo>> getAnimalList(AnimalDTO animalInfo);

    R<String> addAnimal(AnimalInfo animalInfo);

    R<String> deleteAnimal(Integer animalNumbers);

    R<String> updateAnimal(AnimalInfo animalInfo);


    R<Page<AnimalInfo>> listAdopt(Integer pageSize, Integer pageNumber);


    R<Page<AnimalInfo>> listAdopted(Integer pageSize, Integer pageNumber);
}

